<?php

namespace App\Http\Resources\V1;

use Illuminate\Http\Resources\Json\JsonResource;

class UserAddressResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'id'    => $this->id,
            'contact_name'  => $this->contact_name,
            'contact_phone' => $this->contact_phone,
            'full_address'  => $this->full_address,
            'last_used_at'  => $this->last_used_at->toDateTimeString(),
        ];
    }
}
